made line output match size multiplied by a dash
added spec to check size input