simplified code; decoding flashvars; date formatting; cleaning output filename