Started adding examples as well as fixed example generation code