Added more tests.
Added a license.