taking out docs from source control. Use `sdoc lib/`
Refactored old interval creation