Changes to core.php and added some files into .gitignore