fixed style issue
added comments