Added append() to log. This function won't print a line header. Also added print() which writes the current log file to a passed fd.