Added -Wall flag for building files using makefile. Fixed up printing in console. Fixed some warnings.