Add method for switch. Fix readme.