Added memory wrap feature; more examples