Cleaned up comments, added proper license

Cleaned up the comments in all the project files, and put the correct
license information header at the top of all the example files.