Removed useless main function instructions and comments in the file, as well as seperated the project into multiple source files.