added comments and changed syntax