Hi can some one help make homing to work?

Hi kimort,

You din't know it yet. You should re-edit your first posting.
Posting so much code as plain text instead of a code-section is annoying.

look into this tutorial. Scroll down to the section where

re-editing

an existing posting is explained.

best regards Stefan