Bug fixes

Fixed file reading/writing. To allow the logic board to reset, some
Vector_refs needed to be changed to plain vectors of pointers, since
Vector_ref does not have pop_back. This means some memory management
will have to go into destructors. Still fixing TT_window sync with main
window.