adding script to __main__
adding gitignore to docs/rst