Updated .gitignore so it will not include .pyc files
New files and modularized things a little.