added auto cleanup

global linked list of malloced strings freed atexit