Work on annotations. Introduced functions paintObject, getLaTeX and readJSON.