minor changes in function estimateFiringRate

add a few structures and comment to the code