Add premap function

I put the `premap` function in the utilities section. And some comment. Hope this is fine.

Let me know.