Files updated to accept standard in and standard out