Updated credits
Added comments
Modified the code