Fix a variable name in PHPDoc.
Restore compatibility with PHP5.3.3.
Update Core.php

* add function_exists for mb_regex_encoding in case is not enabled on the server
Format code. #mania
Add links.