Added beginner error logging. We'll probably use this to also help with #32