Added quotes around strings, can now take in a format file as parameter.