a4aInternal outputs fails properly, a4a.tpl revised to reduce non-positive definite errors