found a bug in allocatePowderMemory where a powder loop was lacking end parenthesis, changed indentation to make it clearer...