Update; some bugs fixed.
Next update to fix minor issues.
merge hoyt's updates, add examples