Fixed rounding issue again, some cosmetic fixes
Ignore rounding errors when computing amount
Documented script better