Fixed bug in line reader. No need to read an extra empty line - the while loop already did that.
Fixed bug in value calculator - added the log in base 2 evaluation to know which digit was found. Added also protection for in-conclusive log results.