!B fixed A*, some debug code was added