move cmscan to class and test
Merge pull request #17 from andrewjpage/master

move cmscan to class and test