Fix Undefined behavior

An array subscript is out of range (C99p6.5.6).
Fix minor annoyances.
Reorganize ocen_przedmiot().
Merge pull request #10 from 1500100900/master

Fix undefined behavior and minor annoyances