Added harmonic option
Fixed fits handling, erase bunch of unnecessary lines