added const qualifiers to many functions
added const qualifiers to many methods and return values