updating examples
miscellaneous fixes