inputbase.py: added directory option
added .gitignore