added function rVirtualProtect + some other updates