updated readme and added copyright to java class