Added comments in the code, fixed showing mapgen_params error