Made changes to return error codes instead of exiting from face detection dll.

I also added  an instruction to show how to make a new face detection
dll file.