restructuring
version 1.5: battery stats, tweaked message format