Improved documentation. fixed performance test.