Documentation updated to reflect current state of code.