introduced myfunc.sh and made some changes to cleanup steps
update headers