7

Get in touch with a lawyer !
IP, copyright and patent laws are amongst the most difficult and complex laws.
Never rely on non-professional sources for advice in these matters!
Don't aim for a raise but a one off payment, multiple payments or licensing agreement.
Make sure the contract (oh yes...