Fixed a few bugs. Added the function to release flap after being done with the initial piercing. Need to test the code for the reorientation.