Minor adjustments to function phpdocs, addition of ajax head var.