Update readme with better usage and API docs
Use require.resolve instead of requiring path dependency