complete and test the parameter.py - maybe include some safties for extremal values