Added funationality to store& read params to file