Improved Memory Management

Fixes #004
Added dispose() method to clear encoded bytes from memory