add: wait method has been added.
fix: incorrect argument name has been fixed.
add: waitdir method has been added.