added id check used for persistent values
added reloading of html file
improved fetching of cm doc id
added persistency options
added handlers