Tidy up cross-project framework references, and add file I/O.