Added log statement
Added comments
Updated docs