DRYing line()

Removing duplication of logic. Switching line() from directly outputting to the PDF to calling lines().
Merge pull request #210 from bgribaudo/patch-3

Removing duplication of logic in line().
More fixes related to #237 and new dist files.
More fixes related to #237 and new dist files.