Add premap function

So to fix  to fix #13, I put the `premap` function in the utilities section. Add some comment. Hope this is fine.

Let me know.