fix flags in Grib2Spec, add basic template reading