Remove unused consts.hh
Add missing license header to files.