fix doc typos and add missing license header