Add documentation. Fix license