Added 'autocork' parameter; fixed error in convertation to lower case of command keyword