Adds @Nullable and @Nonnull annotations in a few places and replaces + calls with StringBuilder.append where appropriate.
Closes issue #73.