Finsihed and implemented some classes

Finsihed the joule,battery class
Added the Interface DeviceListener.
Added and implemented the ElectronicDevice class.