Updated copying of binary
More refactoring and new echo exe
Minor fixes and refactorings of globals