Adding comments on some functions and deleting an extra space to make PHP_CodeSniffer happy