Important bugfixes, some trivial refinements and implementation of some
classes.
1.finish classes Write, Type and View;
2.some methods have been restructured;
3.fix bugs in Core class.