Cleaned up code and Added copyright notice in each file. Final commit before deadline.