Barebones minimal functionality for lib: paragraph and saveAs.
Not yet debugged.