Rewritten docs build process, changed examples to dynamic templates for easier development