added untested install script, refactored code a bit for readability. Removed legacy files