updates error trapping in rack app
added api docs
refactors between scope to use range
adds elements to xml output format