Several fixes, added object support, and a new interface.