add some comments
refactor face detector