Fix object creation, and update README and tests accordingly