More in-code documentation. Added a few constants to the index.php page for easy paths.