improving code quality to enable -Wall with minor discounts

improving code quality to enable -Wall with minor discounts
-Wall would pass always if the code compiles. const in these cases just makes sure that the class function overloading is working like intended, meaning it will overload the function and not just hide it.