removed trailing space
added automatic list creation via lists parameter
moved all parameters to params class