almost fixed, prints lines correctly and adds extra lines
Merge branch 'master' of https://github.com/SCOREC/core