Modified terminal logging and removed bug in Makefile