fixs markdown and deletes unneccessary lines