Refactored interface, added examples in readme