Add render command
Add renderFile method and support functions