modified install script, refactored recipes to individual files to avoid polluting the Makefile