Added code; updated README.