add code in compiling state

Fix all of Tristan's compilation errors, and reformatted the code, laid the ground work for the array structure, and finished up most of the communication, it just needs a little more love to get off the ground