readme and mode function update