Fixes attribute parsing bug where comments include braces

Also refactored out the dynamic bit in favor of present?/absent? logic.
Slowly getting the hang of those conditionals.

refs: #29