Added some 'const' keywords

I've added a few const where possible. Clearly const could be added in more places, but it's a start. More const can be added later little by little.