time calculations fix, tests, readme