address comments, add missing file

add code tab for design patterns sections.