SEM based additions/deletions

Removed some comments and/or replaced them in their appropriate places. Also renamed functions to make their functions more obvious