Readjust the startup scripts for easier testing. Add Makefile.