Refactor tables into new file and set array sizes for compile time checks