initial commit
improved error handling, updated readme