Three essays on investments and corporate finance