implemented the main function
updated README