Create core.php

Core class for the script.