Fix docstring
Fix for self.cycles[-1] throwing exception if empty
Merge pull request #119 from sjbrown/minor-fixes

Minor fixes