Fixed two bugs causing sample to fail.
Updated readme with latest status.