Adds a Makefile
Handles error