map: add func: set start and end
Merge pull request #17 from sherlock99/master

pull newest map to sherlock99