More javadocs and useful methods.