Implemented function to call the on_complete callback.

  This will be invoked when completion is called.

  This is part if ossue #47.
  Added prototype for completion hook invoker.

  Part of issue #47.