Reformatted LICENSE.
Added tests.
Added documentation.