Added constants and second bind in index

Constants are now located in functions.php