issue #1 - upated java version to 1.7 and fixed various style problems