Added better docmuentation to explain how intervals work.