Allow filename to be set. Default file name to date-time stamped string.

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>