Some tools for testing
Add preview info and cached labels

* preview info read from the line above the \label
* cache label and reload only if file was changed