Removed most of the warnings from all the classes.