Added the santize filename function and basic functioning directory listing function, modified ex