removed unused commands and added comments