added doc for xafs.estimate_noise(), cleaned up code comments