checking for port before trying
file changes and cleanup.  Use of new function to return array of channels
for testing different file scenarios
file reading and finding updates. New function to return an array of the period as integers