Added source code for all modification procedures - final versions in separate files