Fix updateVisbility(World) just creating a bunch of useless anonymous functions instead of actually doing something.
Clean up primitive declarations