added dynamic array pointers. Fixed empty string bugs