Changed README format to RST, fixed code samples