Merge pull request #354 from czurnieden/refactor_bigendian_storage refactored functions to read and write binaries