Fixed code formatting and changed README.md for better understanding