Added a Makefile and improved the scripts
Now pretty much everything can be done through make.