Initial commit.
Rename cmd because of problems with pdb.
Work in progress.
Further additions.