New header info added to all files. New algorithm introduced for testing