add a simple printf function
bump package version to v1.2.0 and add printf example