Fixes and improvements in SEM-PLS analysis code. Code cleanup.