Coding standard fixes

* use options variable instead of making get_options call again
* Update the version to 4.0