added README and demo accepts directories as arguments