Add ability to select specific class
Typo in variable name
Removed php warning