split to lib directory; added argparse (currently unused); added mksingle.sh to create single-file zipped version
added .gitignore
fixed \n generation in dash
fixed filename in Python version error