(beautify) added javadoc comments, moved copyright