Minor changes
Add Javadoc
Fix null handling, return empty string

The previous behavior could return the string "null" or
throw an unchecked exception. Instead we want to return an
empty string.
Add missing # to the documentation