fixed max-points setting, improved formatting