commented the code

Check for NOTE and TODO on elevator.cpp, state.h, state.cpp and
control.cpp