added $id() compile-time helper; README and samples updated