Added support for negative indices

When defining formulas you can now use negative indices for target /
cells to refer to them relative to the last. -1 being the last and so
on.
Updated docs