Add inline documentation

Closes #226