Added 'value' argument in annotateSource, and some type fixes in docs.