added binary file mode handling
version bump