All rights to your work will ultimately be in your hands. This is everything from the non-disclosure agreement to the source code and intellectual property rights.