Added install script and bugfix