Updated documentation and test script

Added details about optical depth to the documentation and tidied up
the test script