Added a schema factory method and some minor inline documentation fixes.