improved test routines of find reffreq
put freqency tolerance as a parameter
back to relative freq error check
cleaning
simplified the furrier length stuff
pep8