Added License

And some minor fixes.