Add Vows tests, remove docs, rework logic to be testable