Compiled with pedantic and made suggested changes, extended the makefile