Get rid of setData; clean up the file a bit, document events