added missing headers. bug fixed. new examples