First version: documented arguments, behavior, values reading, and file length check.