implemented faster get scratchpad method
removed unused code
added getAddendums example