add reshaping and file export code; update README