Add const

This branch adds "const" keyword to remove warnings in g++