Simplify parsing of parameter file
Add more info with assert error