Updated error handling and fixed small bugs.  Added proper dependent installss to pip package