moved example code to documentation and minor cleanups
PreapprovalDetails endpoint
added and updated documentation and moved code examples to documentation
added tests and fixed and DRYed functionality