Add txt, json and xml saving