Re-factored  the code
Added helper functions
added and configured .htaccess
site configuration
introduced loader