Fixed some bugs. Added ignore to .pyc files