Added code document, Closes #4.