Updated Ruby scripts and documentation