Added a vecFileComplete property to input and output files.
Added some comments and function prototype.