update commenting/documenting
add new sanitize_hex_color function (taken from an alpha release of WP 3.8)
add rgb2hex function
add ability to control opacity of background of captions
output captions if flagged to do so