added access functions in Tool
RectLayerFactory added
Fixed LayerFactoryManager