#1 logging, errors, tests, javadoc