code cleanup; registerExecutable
add comments