Updating the src code in main.c and adding other miscellaneous files.