Updated documentation strings and test code.