Some changes in the tile entities

Changed the setElectricityStored function.
Fixed the errors with the FM api change.