Fixed some warnings.
Fixed bug in block checking if we found all necessary chunks.
removed white space