Added frreformat routine and plotting scripts.