Added torch on/off methods.
Updated sample to include torch usage #7.