moved all annotator controls function out of annotator.js
minor fixes
added documentation