update example code

update example code

to see example set example.Main to document class