Added home direction logic

The direction which an axis homes in is either "-1" for min or "1" for
max