Javadoc and split of main class from runnable component