gitignore
fix error handling for general sample.
fixup types.