fixed bug in writeParamsOnFile where bool parameters where saved in the wrong format