fixed book getDiff(). incorrectly returned multiple values now correct
refined update book for int handeling