updated gitignore to a more generic one
basic update to new Params API
updated sample to show new api