bugfixes; adds map reset, boundaries, stats and bunch of other things