Improve CRF calculation; fix bugs with time weighting and persistence; update tests, example app, and README