Fixed some errors and tried to clean up the code a little bit. Going to spend a few minutes working on spice.