Chg: Minor in getQueryVariables()

- Introduce variables for options
- strtok() instead preg_split()
- Removed superfluous if then else