Added attackMobs option, various small changes