added annotations management functions to save and load annotations
fixes for autoscroll