updated render prepare arguments function, added more exceptions
fixed setParams function of constructor
new style of set methods to export