Added publication preview mode.
Improved documentation and examples.