Add documentation

Write documentation for the roundbuffer and scheduler functions.