Added general documentation for type-checking phase.

  Changed interpreter to actual representation in the formal specification section