Adding logging
Fixing memory leak in video reading