Added comments and started main function