Added more javadoc and copyright.