Added licence, typos fixed