weighted random file syntax improved

accept simple usecase-like syntax: ["tagname"] "actname"
in addition to "tagname", "actname".