Eliminated need for predecided length, but getting unidentified seg fault.
Identified seg fault as names array not returning for unknown reasons.
Changed return type and parameters for takeNames() so that the names array and length would both be returned.
Changed variable naming in takeNames() for improved readability
Merge branch 'feature/end-at-no-input'