cleaned up ruby snippets, cleared of external dependencies