improved bg.max and its methods

Fixed manual, added draft of plot