Converted PointerToString to use CChars instead of string functions.
Added validation every time a heap pointer is changed.