Adding a method to get back the reader.

Also adding a missing test for getSize().
Fixed file offsets.
Cleaning up unused aliases.
Applying flag mask.
Adding Extract class.