Files now written out in correct format - json formatted text