add copyright to some files
added some javadocs