added readmode/annot mode, and also designed annotation container; now integrate with back-end
cleaned up a bunch of stuff, prepare for merge