add toMarkdown function
add readme argument to publish method