added check and compare functions
Merge branch 'master' of https://github.com/rickvschalkwijk/rksmsm