Add main to generated code. Add more README