I'm a master student in Computer Science and currently writing my master's thesis in collaboration with a company. In our original agreement regarding compensation, the organisation and I agreed that the aspects of the work that was closely linked to my research would be free, whereas the work that had little to do with research would be compensated for. In the original agreement, however, we never agreed on what this compensation would be nor how big it would be (I know, this was silly of me) but there is documentation of this agreement.
The issue now is that the company hasn't really given me any data nor resources so I've had to do everything from scratch. In addition, they are quite demanding and also adamant to put the code that I produce in production once I have finished and I'm certain that they'll be able to achieve substantial growth using the module that I'm developing. All these factors have made me inclined to approach them and try to negotiate a deal now, before it gets too late and messier.
How should I go about this so that both I and the company are left happy?
Note: Where I am from all the IP rights relating to research is by law granted to the student, which means that I own all the code that I am producing whilst writing my thesis.