implemented remaining relay cells; cleaned up cell/definitions.py to use more constants