New utility functions:
pad() -- pad string with whitespace to desired length
str.dup() -- repeat string given times; needed for pad(); taken from stringr package
format.header(): convert nested list with header values back to text representation. By now, only fileinfo part is converted.