Refactoring towards Java 6 compatibility
Small changes in readme
Two printing bugs fixed.