Updated example template and debug extension

also fixed offset behavior