moved check for class definitions into 'init' action, since classes don'...

...t exist yet when plugin is loaded.