Updated swap interval notes.
Documented utility functions.