extend texkey lookup to 035__a/z

Hi Eduardo,

some bug fixes and a bit of whitespace cleanup. Please have a look.

T.