Fixed some small rendering issues with the generated code. Added command line argument support. Added direct rendering support,