Added .gitignore to ignore pyc files
Some new states and methods