Improved method checkState(), added toString().
Authored by: aktion-hip 2012-04-16
Parent: [r1235]
Child: [r1237]