Added conversion constructor and erase function. Fixed minor pointer problems.