Added a method to add a pointer later in the smart pointer. Added exceptions.