Add premap function
Merge pull request #14 from PierreR/master

Add premap function