code cleanup

cleaned up code
ignore pyc files