Final Submission for project 1

Hi all,

I have added in the checked_malloc and changed the location of the header files as requested by Andrew. I've then gone through and run it against my test.sh script and checked the output is still correct so all good! 

Please comment on anything that you want changed and i'll fix it otherwise if everyone accepts then I'll merge the branch into master and submit on the servers.

Cheers,

Mat