Refactored the copyright notice and moved code into sub directory.