Update bg.max.R

Comments to the source code