G'd evening,
The answer to your last? question is not. That function is commented ' and won't do anything. If you uncomment that line the code will break. You can't declare a function within a function.
By the way, in simple words, a public function is a procedure that you can call from...