Added code documentation. Fixes #7