change api calls to use objects for most parms
updated example to use new parms
added MIT license