Refactored the x86 ref documentation to be more robust.