Change invoke method and document

Use reflection.