small formatting changes. fixed small bugs