added comments & compilation errors