Created API in README.
Refactored option capturing.