readme file modified and comments added to java code