Fix indentation
small optimization

add some spacing for readability
Fixed script skipping large sections

Merged use of pos/x variable
Fix for binary files on windows
comment formatting