add a "reference" attribute, and change "time" for "start" + "end"

Signed-off-by: Tomas Neme <lacrymology@gmail.com>