Little cosmetics.
Remove redundant unlines.
Return forgotten %s.
between is not needed then.
Provide nice user-level complete function.