Remove an unused require
Enable passing the directory as an argument
Add readme