Added javadoc and modified registerTypeParser(...) method.