started working on #inferName
still working on (currently very ugly) #inferName

also added #query, which is maybe useful, and refactored example
helpers a bit
working on #inferName
this is really hacky