In case anyone is in a position to hire programmers and cares about treating creative people fairly, we have an open source Hacker Employment Contract: https://www.docracy.com/hackercontract that tries to fairly handle stuff like IP created after hours.