estimate the firing rates

a very preliminary code for estimating the firing rates
Merge remote-tracking branch 'origin/FRestimate'