add ctime and prefix options. add basic stats reporting.