fadein and fadeout effects added to the patch
small changes for better understanding