combined bat with thinkpad-bat. added startup checks. minor cleanups.