Added inner loop in getBitsFromBytes (also changed getBitsFromFile to getBitsFromBytes).