Code cleaning + dialog for BIN format loading/saving