refactored folder structure
removed older structure
fixed reduntant 'ret' in isprefix()