allow openState option to be a boolean value on initialization. fixes #1