- remove unused variables
- fix two potential memory leaks
Merge pull request #16 from asmaloney/cleanup

Unused var cleanup & fix memory leaks