Codechanges inside index.php. Some codecleanings for SM2