added redirection to file output if filename set during class init