hadoopcompatibility: Implementation of feedback comments. Additional tests, cleaning and javadocs.