Updated documentation and test scripts