change filearray opt. to more generic 'inputarray'
fix 80 column trespassing due to refactor