Addressed review comments
Fixed code blocks according to existing style

* Renamed constants in o2globals.h. All contants are now
  prefixed with "O2_".
* Removed explicit "inline" keyword from getHatsh() function.