Introducing java.util.Logger and doing some code clean up to follow the java coding conventions.
Adding test.