massive reorginization of smaccmpilot source code