Throw new exception for strlen()
Repaired errors in read_file function