Make test target use new test script
Tidy up public interface
Add format_extended_markdown function
Update README