some changes in Main.java all errors resolved
some more changes