Finished documentation. Added exceptions. Ready to merge.
Small bug detected during testing.