Update examples

Examples updated to use GdxReader as a context manager and to use temporary director for work_dir.