Added autofocus before takePicture
Fixed runtime bug
Added error check on takePicture also
Added proper catch for takePicture
Merge pull request #19 from mWater/issue9

Fix #9 autofocus