fixed a lot of mob API stuff. + formatting