added constants.php
added functions.php
added core.php