Added define example to README and fixed other example