main: added comment to cost function
Merge pull request #1 from andreimacavei/master

main: added comment to cost function