Added indendation, header comment, error msgs