add query element
some bugfixes
get stuff working

fields, tablerepeatrow, queries, etc. seem to work now.