fixed problems in ~ macro, added examples ...