Add more internal docs

Closes #10.