Optical galaxies within 8000 km s-1. III. Inhomogeneous Malmquist bias corrections and the Great Attractor.