updated samples and docs