Fixing PHP_EOL, docblocks, more cookies fixes