Update in-code documentation in rd_route.h
Separate memory patching code, restore protection scheme after patching to prevent memory executing on it