added puppy module, and wrote and read file