Added file reading capabilities and output