Moving main from cmd to root