Add commands for setting modes
version 0.1.4 - numerous bug fixes