some small changes to the exchangemachine class, chapter 4, java programming

Signed-off-by: Alexander Skjolden <alex@plastboks.net>