Commented functions and added miss information in file output