updated readme and better support of dirs