fixed the issues per the review comments. All tests pass. VolatilePtr is now working with pointers, not values. Introduced a safe interface.

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>