Updated example and put it in file. Also updated readme.