Added gradients and arrow, part of implementation of coded reset, see #12.