update: Addressed @TomiBelan's comments

* Fixed whitespace all around.
* Using code of the time range as a selector.
* Added docstrings where appropriate.