renaming some variables + adding successClass to options object