off-by-one fixes, added notes, implemented panning