fixed weird syntax issue
created base_nml creation function