format files and removed unnecessary ones