Fix and formatting in getFolderWithName. Debug statements