Added license info and a bit more documentation