Added class to write a file from a HashMap