Improve overlay to use settings, and some code cleanup.

Great library.  Just a few things I thought it needed to support my use-cases.