Added GPLv3 preamble to all source files
Cleaned the source a bit, removing commented code etc