Added documentation and local fmeasure