Some functions converted to class

Template functions for arguments processing were converted to class Args
and its member functions.
An abstract base class FilterIO was created, and each filter's IO
function was rewritten to a derived class of class FilterIO.