fixed warnings at samples + comments