move internal functions to vsmc namespace
Fix a typo in file headers