Updated readme and code formatting