Created Makefile to simplify running all the different parts of this project.
Added hash bang magic lines where appropriate, did some dos2unix conversion.