Fixed clean up script to remove all functions too
Added debuging