Adding copyrights and javadocs