change gt_ensure

gt_ensure now expects had_err AND err as valid variable in its scope.

closes #47
update devguide to reflect gt_ensure changes
Merge pull request #48 from Garonenur/ensure