fixed bug with incorrect naming variable of the output file to new media class
added set_time_limit(0) option to config object so that exec doesn't cause the transaction to break on systems with max_execution_time set