Improved internal documentation/Javadocs.