Apply const to some functions
Merge pull request #1 from lioncash/consts

Thanks! I'm terrible at doing things like this (it's not a programming habit I ever developed).