updated samples and documentation