Made lots of changes to the install file. (1) Added support for system-names. (2) Renamed some methods and vars so that they made more sense. (3) Various refactoring in loops.