tar.c general improvements and error checking