Added initialization fuctions and the main loop
Added a cleaning function in Makefile and corrected coding style issue in main.cpp