edit 1

added freq calc, itoa