fixed indentation
added log
log
added comments regarding modification