Fixing Add Ticket

Have amended the sprintf call, now passing strtok() up until the
first newline char as these were being read into the data structs too.
Was getting seg faults with the free() calls at the end of the tm.c
while loop, on exit.