renamed parameters and fixed documentation