Added assertions, got rid of _getStartTimes() (it's only called from one place). Created some unit tests.
Removing examples from docs folder (they belong in demos).