Adding an install script and updating readme
Simplifying some error handling