A molecular theory for freezing: Comparison of theories, and results for hard spheres