Expose functions for aribtrary get and set commands.

Fixed #4.