Fixed lots of warnings deleted some redundant files