Moved constants to constants.py. Closes #103.