Story24 hdf

Ok, I will create a new module. But, I have a question:
I could not understand this statement: 
I suggest to write a module specific for generating the HDF from a given JSON structure (aka the data pulled from MongoDB).

I am planning to do something like this:
New Module for HDF	https://gist.github.com/Vishv19/e0d6e2bd6a094e746c0f
app/routes/measurement.js https://gist.github.com/Vishv19/dac2c5c64ad78713bf1e

The reason being that we are generating HDF for email feature as well, the only difference is that after generating HDF we are sending it through mail. 
So is this expected change? I will take care of other small details in the new module, but my main idea is to return  **'zip'** object via callback.