added offline example, improved other examples, removed mysterious r
added offline example, improved other examples, removed mysterious r