Some cleanup and copyright updating.

* updated copyright notices at top of all sources
* fixed numerous files with DOS newlines
* cleaned up some comments/ifdefs