Delete broken stuff and external libraries, also cleanup indentation.