Generate license header, add safe/unsafe wrapper fns