Cleaned a lot of unused source.
Mostly imports and unused method. Added suppreswarning to important unused work