Added some tests. And a license.