remove print statements and convert to markdown