Added lots of javadoc. Renamed a few properties. Added AlarmState enum.