first cut working cleaning (writes cleaned file as new filename)