Moved output function to separate file
Debugging
whitespace
Fix debugging array references
Accelerometer refereces