Autocalculate maximums and annotate them. Configure what local means in generalconfig.py with extremaOrder