implemented changes to recursive file function and index.php

Signed-off-by: John-Michael Velasquez <johnmichael@wednesday-london.com>