Add notes section and refactor some of doc.rb