Fixed top ten list, small changes to write/read