Add validation/error reporting to VQB. Fix #147.

document input types