Fixes and docs for basic sample