Added documentation. Added constants. Moved packet functions to new module. Added setup.py.