More function documentation. Tags & Outputs. Update code blocks to indicate ruby.