Fixed a bug in iterator, added wrappers for some methods.