Added comments and valid
Code formating