pep8
fix docstring
guard against empty index difference (happens with current.data spans multiple years); fixes #39
handle start/end date ranges more intelligently; fixes #43