add opts() for getting key-value pairs
Merge pull request #262 from tonylukasavage/options_func

add opts() for getting key-value pairs of options