fix example invocation, add main class