Added .*pyc files to ignore
Some refactoring