Fleshed out a file structure. Instances of Flatten goes in its own file.
Moved Expr functions from PIRE to Expr