Added comments to type.hpp