added comments for all commands and reorganized