Added doc comments to main class. Closes #23.