Made getters consts, and fixed assignment operator