Removed opts variable

- Removed the opts variable. It is not used outside initOpts.
- Moved initOpts function to be inside the variable watcher.
Merge pull request #2 from leobispo/remove_opts_variable

Removed opts variable