Create wandcli.c module plus other minor changes

10 files changed