Improved ruby file. Added python and php example file.