Fixed the makefile and set up input verification