Update th to 604660bfda3d4e330a7452c898970aef27403fd1
Cleanup warnings
Update wanal and th
zero the buffer for errors
Return bool from empty()