add comments to counting functions
implement calculation of configuration prior

also, correct definition of lambda in likelihood: false detections per scan now, instead of total
add simple test for logprior