implemented escaping, formatted files