Added in-depth comments