Added and expanded Javadoc.