Modified guidance code so it flies.  Fixed bugs.