Refactored the getbg functions - colors are more likely to be right
based on the existing color scheme settings. Doc updates.