added basic documentation.
added interval sampling methods.