phpdoc fixups, unused var and comment spelling