Update readme and fix code format