added amapping subcommand
added analog example
changed mode information returned from state subcommand from number to text