Moved main function to new file
Made files non excutable
Complies and runs