Wrote some JavaDoc. Added severall functions

Finished the JavaDoc.
Added the Setting Dialog for the Device.
Added the timer functionality.
Added a Dialog for Calculating the Energy use.