Halvade base MapReduce classes + check quality encoding