added settings.php with few error constants
moved constants from index.php
constants moved into settings.php
added eror constants