Add auto focus option and complete api documentation