Three essays on corporate finance