fix spacing and a few errors