Updated to PHP_EOL and added some comments