Fixed errthang and it WORKS

now to remove debug printf's.....