Moved inline to .cpp file. Added const to functions.