Documentation and more test cases