Fixed error and made formatting changes