Filled out SpikeMain. Added a main method
Fixed some namespace errors