Commented the cod according to YARD standards