Added read file and tests