move token_hash to docinfo, as discussed in issue #406
on saving autocompile not needed