Done working ui with some additional error checking for file types and
changed disk optimization with additional comment for error checking