wrap up CLI handling + basic doco