Added additional parameter to specify class attributes

This allows people to specify css classes to style their input elements