removed unused files and fixed 4 warnings