fixed labels.
frequency updated version using pp, added learn and com distribution