Completed autopatching + documentation