Whitespace cleanup
A bug in fmt_time() fixed
A bug in fmt_time() fixed again
Main program renamed; common functions extracted
Stat rewritten to perl