Changed to use shared_ptr to fix memory leaks.
Updated version number.