Use class constants

Removed global constants (#32)