Fix Makefile and add main.cpp file documentation