code cleanup; better grid; color fade for distance