updates to ported code, spreadsheet is nearly completed