>>Do you have suggestions on things to do so I won't be left with nothing in the long run? Is there a site that could give me more help on that? Is there a book that I could get?
>
>I was in a similar position several years ago. I had developed software for a medical billing company and I had it copyrighted. They decided they were going to sell it to another company some time later and I told them that would be fine after they paid me. I negotiated a nice tidy sum from them before giving it to them. Of course they went bankrupt within a year, but I got out with my money and eventually retained the software. Get a copyright, then go see them.
Check with an IP attorney; often, copyright is the wrong means to protect your interests; patent filings can often protect better than copyright with some types of IP.