Code cleanup; bug fixes; added redo; added block path finder