Fixed executeCommand and updated getAllMethods