Advances in gamma-ray burst astronomy