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
coding style

unnecessary prefix was added by accident years ago