Improve a lot of error logging and status messages. Fixes #13