added problem 4 and 5 bits to the makefile
changed names of output files in Makefile to avoid name collisions when tab-completing