updated version 2 to home machine

Here is my update to version2 which includes the update for homing the machine or running the machine from the current location.  It needs to be tested on the machine.