Many fixes, including background bug, updated examples