Read all files successfully, fix a lot of bugs