Add option to automatically open class selector, fix some message
errors, misc fixes and improvements