added license file
new test cases and fixes