Few warning fixes, added debug logs

Added debug logs and fixed couple of warnings in client.c
Changed the perl path in the perl file.

Prototype Added for test func.