fixes #1

added some exception handling and proper exception messages