misc: correct typos and other fixes