- cosmetics on variable naming
- added simple scoped_ptr class
- added a couple of macros to avoid repetitive tasks in sse handler