Added the ability to open and read file in main module