Added low voltage protection
Some bug fixes