src: added parsing of input parameters
src: clean up
src: values are now passed to lm