Add classes doc and a rewrite plan.