Small fixes. Rewrite documentation of adjusted cosine function.