updated main to load the parameters file