added license and fixed a few typos