Fix option class

If an option didn't have a class, "undefined" was being added as a
class.
Merge pull request #63 from caseyjhol/master

Fix option class