Refactor and add notes markdown.