added EXIT and <memory.h> to main header file