Added missing apcupsd.[hc], added apcupsd_loadgauge, fixed compilation errors, updated docs & syntax stuff.