used intent(out) arguments smartly
refactored comlog, external_controll, nice output