basic functionality ready. Still no interactive mode...
I just made a mess!
restored general functionality. Interactive mode broken again.
merge
Interactive mode working OK, so is argument mode