Multiple changes :
Added feedback() function.
Added comments to almost every line.