Add object function define support. Make runtime no need manual free. Update examples and README file.