Fixed error of getting several chanks

There was an error when you heve to get chank and do not fill it
all with data. Added comments. tableArrat type changed to unsigned
int.