turns all flags arrays into objects, removes dash prefix (#10)