What are the legality issues when selling a piece of software one has developed?