added some more error messages, updated documentation