Filter support now added
Added exception handling for opening input/output files