Removed duplicated code.
Changed the method of marshaling　string object
Added type and function of simple typed closure.