Added quality factor section, fixed code blocks for kramdown.