added exceptions to data.py.  fixed some add data bugs, but still at least one large bug remaining