Added line numbers to debugging output

Added overloaded debugging strdup to check for leaks