The pin assignment go from D0 to D54. If you are making your own pins_arduinio.h you can change the order however you'd like.
Whether a pin is connected to a UART and is PWMable is defined by the actual hardware, so have the ATMega2560 data sheet handy as you go.
I would agree, the stuff in Red on the top of that link appears to be a little off.