Fully documented the PopupBox class.