Added doc and resolve type reference