Can input- and output files be specified for tasks?

Yes, you can create models for document libraries in the Documents Designer. The objects of these models can be used as input or output in process models once assigned.