Added clinet-side file writing
Added writing file names to client