Added function `toDate(time)`
v0.1.2: updated README for `toDate()` and quick refactoring