add util to calculate mean accuracy
some spelling errors and other small stuff