Add transaction query by reference number
Cleanup some other stuff