Made the loading bar accurate
Fixed issue #69

Wrapped input stream in a buffered stream.