Update func.php

Cleaning up commented code.