Fixed a bug in updating intervals when switching to another rate
Updated readme, documented API, added some examples