fixing check for options object, updating example to use new options, export Nightmare class correctly