- use RAII idiom
- stick to original function names
Merge pull request #61 from aschnell/master

- use RAII idiom