Functions for total cross section calculations were added