Cbf/add main class

This allows us to do direct invocation from the built JAR.