Add licensing and more documentation