minor fixes
added first inaccuracy correction algorithm