added docs for Component class