fix #312 Update peg dependency?

Close #313
$onContentRefresh for custom attributes

Close #314
completing api docs

adding the missing paragraphs and some formatting