added settings to compile an executable
added Main function