RegistryManipulator.cs:
Numerous bugs were fixed,
Changed the internal working of some functions,
Fields were renamed with more appropriate and meaningful names,
Added comments and regions for whole(existing) code.
(Note: this is a major bugfix for this module)