updated code commenting