First complete version of SM_tensors_modules.sws