Added types.hpp and remove some comments.