Added a testing function to help in debugging, some minor touchups, and added a gitignore for .pyc