fixed bugs

fixed indentation bug
added material attribute  logic
made the ogre parser use a paring mechanism for fixing the materials in
the xml file