adding functionality for grid file and alm
mofifying input features