updated README with example and began work on the main function