const for xpm
Merge pull request #6 from vomikan/master

const for xpm