cedarv: more error messages, code style etc.