Added main directory to sys.path

Also updated files that used . imports that were no longer necessary
due to main directory becoming a package.
Added .gitignore

Ignoring .pyc
Fixed duplicate path element bug