1) Removed delete frames method
2) changed __init__ method
3) wrote some docstrings
Changed some imports, and modified according to PEP8