fixed errors, added java level 1.7