fixed minor issue about k=0 + improved printout