Adding parsing
Fixing vars
fix path addinf dirname and saving png