Fixed some copyright headers.
A lot of clean ups from waltje; Start of a directory structure for the code, thanks to waltje.