Reworked the class for converting between files and mongo