replaced logic for calculating time ago. Closes #7