* updated printFiles function.