Documented the shit out of Main