Essays on corporate bank loan contracting