add license notice, fix typos