added requirements file for easy setup.
Do not crash if no battery is present.