fix spelling error
add a few comments / fix bugs
reformat
fix full amount formatting