Smashed All the warnings

Except for one in Tomáš's code