Implemented a two-level option retrieval function.
Modified the wrapper so that different internal options can be queried by name.