Added preview plugin.

Issue #22