adds htaccess
adjusts controller to use function names