Add usage help, move file processing into a function