Code Clean up

Removed the commented code from source files and added the license
header to all the files.