Fixes in first chapter. Changes in second

Signed-off-by: Krzysztof Opasiak <ups100@tlen.pl>