Refactor function arguments
Add basic usage and licensing to README