Compile time warnings

Some compile time warnings occurred. Solutions have been added for these cases, somewhat categorized. 
Overriding it (with or without the annotation) yields a compiler warning, which this branch is trying to eliminate.