Refactored some table/column-writing code and made sure all unit tests are passing now that nRank is part of Friend class.