Added javadoc and source for attachment.