Added pkg to template parse.
Switched to using markdown on body.
Fixed preferGlobal flag case.