add missing licenses, fix inconsistent doccomments