added deal api -- closes #11