made progress bar work properly
Added progressbar to reader

As a side-effect, also added functionality to stop polling after N expected frames
Only display progressbar if DEBUG is not on

This resolves the conflict between log4cxx debug and trace and the progressbar