Fixed missing prototype and incorrect document reference.