Rewritte Batteries.pm in a moose syntax

Rewritte Batteries.pm following a moose syntax