Update A* documentation. Refactor names/functions