Modified install script to use classes so that they may be resued when installing/removing applications or modules