Added method to Decoder. Refactoring factory
Factored out BuildingDecoder and UnitDecoder as their constructors are the same (for now). Will delete classes when sure.