Midcourse commit:
1. Changed invocation
2. (Working) getX, getY, getZ functions
3. Check/convert endianess (nearly forgotten)
4. Preparing to open output file
5. Pseudo-code for parts not yet done