Updating the hadoop version to enum, javadocs and adding more unit tests