Finish adding PTKDevice header docs.

Fix analyzer warnings.