Javadocs for AMP extension
Use common formatting utilities instead of handmade
parse per-hop attribute as well