ui improvements, misc. minor bug fixes

 * improve some error messages
 * display progress while counting passwords
 * minor bug fixes to positional anchored tokens where len==0