Changed weightaver and create choose_freq

Now choose_freq is to be used for choosing frequency within an interval,
and weightaver is just for taking frequency estimate
Create new script for testing results