Updated filestructure, renamed i2c.hs to i2cfunctions.hs and defined Aeson instances for the types which need them.