Added the licensing info to each source file and general cleanup