Fix import issue, add git ignore, fix permissions and shebangs.
Merge pull request #1 from allanlw/master

Fix import issue, add git ignore, fix permissions and shebangs.