Happened to notice that two errmsg() strings end with a period, which IIUC isagainst the Error Message Style Guide. Fixed in the attached patch.
cheers ./daniel