Unit testing using mocha
Rename extract to details
Changed api to allow creating instances and passing options on instance creation.
Changed api to allow creating instances and passing options on instance creation. Add unit testing